.class public Lcom/uucun/adsdk/c/g;
.super Lcom/uucun/adsdk/c/j;


# instance fields
.field private a:Lcom/uucun/adsdk/UpdatePointListener;


# direct methods
.method public constructor <init>(Lcom/uucun/adsdk/UpdatePointListener;Ljava/lang/String;Landroid/content/Context;)V
    .locals 1

    invoke-direct {p0, p3}, Lcom/uucun/adsdk/c/j;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/uucun/adsdk/c/g;->a:Lcom/uucun/adsdk/UpdatePointListener;

    iput-object p1, p0, Lcom/uucun/adsdk/c/g;->a:Lcom/uucun/adsdk/UpdatePointListener;

    iput-object p2, p0, Lcom/uucun/adsdk/c/g;->b:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Lcom/uucun/adsdk/d/b;
    .locals 1

    invoke-static {p1}, Lcom/uucun/adsdk/b/i;->b(Ljava/lang/String;)Lcom/uucun/adsdk/d/b;

    move-result-object v0

    return-object v0
.end method

.method protected varargs a([Lorg/json/JSONObject;)Lcom/uucun/adsdk/d/b;
    .locals 4

    const/4 v3, 0x0

    const/4 v0, 0x0

    :try_start_0
    aget-object v0, p1, v0

    const-string v1, "app_key"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    aget-object v1, p1, v1

    const-string v2, "imei"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    if-eqz v1, :cond_0

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    move-object v0, v3

    :goto_0
    return-object v0

    :cond_1
    const/4 v0, 0x0

    aget-object v0, p1, v0

    invoke-virtual {p0, v0}, Lcom/uucun/adsdk/c/g;->a(Lorg/json/JSONObject;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/uucun/adsdk/d/b;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-object v0, p0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    move-object v0, v3

    goto :goto_0
.end method

.method protected a(Lcom/uucun/adsdk/d/b;)V
    .locals 3

    if-nez p1, :cond_1

    const-string v0, "Get Points"

    const-string v1, "Point Result is null "

    invoke-static {v0, v1}, Lcom/uucun/adsdk/b/h;->b(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/uucun/adsdk/c/g;->a:Lcom/uucun/adsdk/UpdatePointListener;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/uucun/adsdk/c/g;->a:Lcom/uucun/adsdk/UpdatePointListener;

    const-string v1, "\u83b7\u53d6\u4fe1\u606f\u5931\u8d25."

    invoke-interface {v0, v1}, Lcom/uucun/adsdk/UpdatePointListener;->onError(Ljava/lang/String;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget v0, p1, Lcom/uucun/adsdk/d/b;->a:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_2

    iget-object v0, p0, Lcom/uucun/adsdk/c/g;->a:Lcom/uucun/adsdk/UpdatePointListener;

    iget-object v1, p1, Lcom/uucun/adsdk/d/b;->c:Ljava/lang/String;

    iget v2, p1, Lcom/uucun/adsdk/d/b;->d:I

    invoke-interface {v0, v1, v2}, Lcom/uucun/adsdk/UpdatePointListener;->onSuccess(Ljava/lang/String;I)V

    goto :goto_0

    :cond_2
    iget v0, p1, Lcom/uucun/adsdk/d/b;->a:I

    if-nez v0, :cond_0

    iget-object v0, p1, Lcom/uucun/adsdk/d/b;->b:Ljava/lang/String;

    if-eqz v0, :cond_3

    iget-object v0, p1, Lcom/uucun/adsdk/d/b;->b:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_4

    :cond_3
    iget-object v0, p0, Lcom/uucun/adsdk/c/g;->a:Lcom/uucun/adsdk/UpdatePointListener;

    const-string v1, "\u83b7\u53d6\u4fe1\u606f\u5931\u8d25."

    invoke-interface {v0, v1}, Lcom/uucun/adsdk/UpdatePointListener;->onError(Ljava/lang/String;)V

    goto :goto_0

    :cond_4
    iget-object v0, p0, Lcom/uucun/adsdk/c/g;->a:Lcom/uucun/adsdk/UpdatePointListener;

    iget-object v1, p1, Lcom/uucun/adsdk/d/b;->b:Ljava/lang/String;

    invoke-interface {v0, v1}, Lcom/uucun/adsdk/UpdatePointListener;->onError(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public bridge synthetic b(Ljava/lang/String;)Ljava/lang/Object;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/uucun/adsdk/c/g;->a(Ljava/lang/String;)Lcom/uucun/adsdk/d/b;

    move-result-object v0

    return-object v0
.end method

.method protected bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1

    check-cast p1, [Lorg/json/JSONObject;

    invoke-virtual {p0, p1}, Lcom/uucun/adsdk/c/g;->a([Lorg/json/JSONObject;)Lcom/uucun/adsdk/d/b;

    move-result-object v0

    return-object v0
.end method

.method protected bridge synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 0

    check-cast p1, Lcom/uucun/adsdk/d/b;

    invoke-virtual {p0, p1}, Lcom/uucun/adsdk/c/g;->a(Lcom/uucun/adsdk/d/b;)V

    return-void
.end method
